﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XQ.Framework.model
{
    /// <summary>
    /// 数据库连接信息的模型
    /// </summary>
    public class DataBaseModelBase
    {

        public DataBaseModelBase()
        {
            bool Debug = true;
            if (Debug)
            {
                this.HostIP = "127.0.0.1";
                this.DbName = "hiwjcn";
                this.UserName = "root";
                this.Pwd = "123";
                this.Port = 3306;
                this.CharSet = "utf8";
                this.ServerName = "MySql";
                this.UseConnectionPool = true;
            }
            else
            {
                this.HostIP = "hk1.3006.cc";
                this.DbName = "a0309234816";
                this.UserName = "a0309234816";
                this.Pwd = "945200a";
                this.Port = 3306;
                this.CharSet = "utf8";
                this.ServerName = "MySql";
                this.UseConnectionPool = true;
            }
        }

        public string DbName
        {
            get;
            set;
        }
        public string HostIP
        {
            get;
            set;
        }
        public string UserName
        {
            get;
            set;
        }
        public string Pwd
        {
            get;
            set;
        }
        public int Port
        {
            get;
            set;
        }
        public string CharSet
        {
            get;
            set;
        }
        public string ServerName
        {
            get;
            set;
        }
        public bool UseConnectionPool
        {
            get;
            set;
        }

    }
}
